package com.tuozixuan.camel.contentfilter;

import org.apache.camel.Exchange;
import org.springframework.stereotype.Component;

@Component
public class CustomContentFilterProcessor {

    public void process(Exchange exchange) {
        
        String body = exchange.getMessage().getBody(String.class);
        // do something with the body
        // and replace it back
        exchange.getMessage().setBody("After:" + body);
    }

}
